package org.kiwi.job.orm.repository;

import org.kiwi.job.orm.entity.Job;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by jack on 17/2/14.
 */
@Repository
public interface JobRepository {

    int deleteByPrimaryKey(Long id);

    Job selectByPrimaryKey(Long id);

    int updateByPrimaryKey(Job Job);

    int updateByPrimaryKeySelective(Job Job);

    int insert(Job Job);

    int insertSelective(Job Job);

    int selectCount(Job Job);

    List<Job> findAllJob();

    Job selectByJobCode(String jobCode);
}
